/*
 * Copyright 2016-2036 the original author or authors.
 *
 * COMMERCIAL USE OF THIS SOFTWARE WITHOUT WARRANTY IS NOT ALLOWED.
 * Use is subject to license terms! You can distribute a copy of this software
 * to others for free. This software is a non-profit and open-source project.
 * Any contribution to this project will make it better.
 * All rights reserved! Owned by Stephen Liu.
 *
 */
package com.github.hingo

import com.github.hingo.entity.StudentCourse
import com.github.hingo.service.StudentCourseService
import org.springframework.beans.factory.annotation.Autowired
import spock.lang.Title

/**
 * @author ste7en.liu@gmail.com
 * @since 2016/10/23
 */
@Title("StudentCourse Test")
class StudentCourseSpecTest extends SpockSpec {

    @Autowired
    StudentCourseService studentCourseService;

    def "Find StudentCourse list"() {

        given: ""
            def studentCource = new StudentCourse()
                studentCource.sno = "20160900000001"

        when: "Find StudentCourse"
            def result = studentCourseService.findList(studentCource)

        then: ""
            !result.isEmpty()
            result.size() == 14


    }

}
